package com.xu.GOF23.Factory.abstractFactoryMode;

public class Customer {
    public static void main(String[] args) {
        System.out.println("=======苹果系列产品=========");
        //苹果工厂
        AppleFactory appleFactory = new AppleFactory();

        System.out.println("苹果手机");
        InterfacePhoneProduct PhoneProduct = appleFactory.PhoneProduct();
        PhoneProduct.call();
        PhoneProduct.send();

        System.out.println("苹果路由器");
        AppleRouter appleRouter = new AppleRouter();
        appleRouter.openWifi();
        appleRouter.settingWIFI();

        System.out.println("=======华为系列产品=========");
        //华为工厂
        HuaweiFactory HUAWEIFactory = new HuaweiFactory();
        System.out.println("华为手机");
        InterfacePhoneProduct HUA = HUAWEIFactory.PhoneProduct();
        HUA.call();
        HUA.send();
        System.out.println("华为路由器");
        HuaweiRouter huaweiRouter = new HuaweiRouter();
        huaweiRouter.openWifi();
        huaweiRouter.settingWIFI();
    }
}
